#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"
void StackInit(Stack* pst)
{
	assert(pst);
	pst->a = (DataType*)malloc(sizeof(DataType)*4);
	pst->top = -1;
	pst->capacity = 4;
}
void StackDestroy(Stack* pst)
{
	assert(pst);
	free(pst->a);
	pst->a = NULL;
	pst->capacity = 0;
	pst->top = -1;
}
void StackPush(Stack* pst,DataType e)
{
	assert(pst);
	if (pst->top == pst->capacity)
	{
		DataType*tmp =(DataType*) realloc(sizeof(DataType)*(pst->capacity * 2));
	}

}